package com.financing.wap.dao.impl;


import java.sql.SQLException;
import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.financing.wap.dto.DstUserInfoExpandDTO;
import com.financing.wap.dao.IDstUserInfoExpandDao;
import com.financing.wap.common.SqlName;
/**
 * dst_user_info_expand  
 * 用户扩展名片信息 数据访问层实现类
 * @author huqiyun
 *
 */
 
@Repository("dstUserInfoExpandDao")
public class DstUserInfoExpandDaoImpl extends BaseDaoImpl<DstUserInfoExpandDTO, java.lang.Integer> implements IDstUserInfoExpandDao {


	@Override
	public int insert(DstUserInfoExpandDTO dstUserInfoExpand) throws SQLException {
		return (Integer) this.sqlMapClientTemplate.insert(SqlName.DstUserInfoExpandSql.insert, dstUserInfoExpand);
	}

	@Override
	public void update(DstUserInfoExpandDTO dstUserInfoExpand) throws SQLException {
		this.sqlMapClientTemplate.update(SqlName.DstUserInfoExpandSql.update, dstUserInfoExpand);
	}

	@Override
	public void updateForce(DstUserInfoExpandDTO dstUserInfoExpand) throws SQLException {
		this.sqlMapClientTemplate.update(SqlName.DstUserInfoExpandSql.updateForce, dstUserInfoExpand);
	}

	@Override
	public void delete(Integer id) throws SQLException {
		this.sqlMapClientTemplate.delete(SqlName.DstUserInfoExpandSql.delete,id);
	}
	
	@SuppressWarnings("unchecked")	
	@Override
	public List<DstUserInfoExpandDTO> queryList(DstUserInfoExpandDTO dstUserInfoExpand) throws SQLException {
		return this.sqlMapClientTemplate.queryForList(SqlName.DstUserInfoExpandSql.queryList, dstUserInfoExpand);
	}

	@Override
	public int queryListCount(DstUserInfoExpandDTO dstUserInfoExpand) throws SQLException {
		return (Integer) this.sqlMapClientTemplate.queryForObject(SqlName.DstUserInfoExpandSql.queryListCount, dstUserInfoExpand);
	}

	@Override
	public DstUserInfoExpandDTO loadById(Integer id) throws SQLException {
		return  (DstUserInfoExpandDTO)this.getSqlMapClientTemplate().queryForObject(SqlName.DstUserInfoExpandSql.loadById,id);
	}

	@Override
	public Class<DstUserInfoExpandDTO> getEntityClass() {
		return DstUserInfoExpandDTO.class;
	}
 	
}
